//
//  SFFileHandle.h
//  Test
//
//  Created by xueshan1 on 2018/11/15.
//  Copyright © 2018年 xueshan1. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SFFileHandle : NSObject

+ (BOOL)createTempFileWithPathComponent:(NSString *)pathComponent;

+ (void)writeTempFileData:(NSData *)data;

+ (NSData *)readTempFileDataWithOffset:(NSUInteger)offset length:(NSUInteger)length;

+ (void)saveTempFileWithFileName:(NSString *)name;

+ (NSString *)existCacheFileWithUrl:(NSURL *)url;

+ (NSString *)tempPath;

+ (NSString *)cacheFolderPath;

    
@end

NS_ASSUME_NONNULL_END
